package movee.io.cmd.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 与cmd-service平台交互的接口
 *
 * @author movee
 */
@FeignClient(value = "cmd-service", contextId = "cmd-service-execute",
        configuration = CmdServiceExecuteFeignConfig.class, path = "/api/1.0/commands")
public interface CmdServiceExecuteFeign {

    @PostMapping("/send")
    CmdSendDto sendTemplate(SendTemplateQuery query);

}
